PROJNAME := n1d
SOURCES := n1d_daemon.cpp n1d_sock.cpp n1d_uap.cpp n1d_sessions.cpp n1d_buffer.cpp


OBJECTS := $($(notdir SOURCES):.cpp=.o)
LDFLAGS = -lstdc++ 
CFLAGS = -I. -I./N0Lib -Wall -g 

%.o : %.cpp
	$(CC) $(CFLAGS) $(CCFLAGS) -c $<

all: $(OBJECTS)
	$(CC)  -o $(PROJNAME) $(OBJECTS) $(LDFLAGS)

.PHONY: clean

clean:
	@rm -f *.o n1d
